<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: LiXiaobo  Date: 2020/10/13 Time: 下午2:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <base href="${pageContext.request.contextPath}/">
    <link rel="stylesheet" href="webjars/layui/2.5.5/css/layui.css">
</head>
<body style="background:#ccc">

   <div class="layui-container" style="width:50%;margin-top:50px;">
        <div class="layui-card">
            <div class="layui-card-header">
            <h3>用户登录</h3>
            </div>
            <div class="layui-card-body">

                <form method="post" action="/login" class="layui-form" style="padding:30px">
                    <c:if test="${not empty loginErr}">
                        <div class="layui-form-item">
                            <label for="" class="layui-form-label"></label>
                            <div class="layui-input-block">
                                <h3 style="color: red">${loginErr}</h3>
                            </div>
                        </div>
                    </c:if>

                    <div class="layui-form-item">
                        <label for="" class="layui-form-label">用户名：</label>
                        <div class="layui-input-block">
                        <input type="text" class="layui-input" name="userCode"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label for="" class="layui-form-label">密码：</label>
                        <div class="layui-input-block">
                            <input type="password" class="layui-input" name="password"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">登录</button>
                            <button type="reset" class="layui-btn layui-btn-primary">取消</button>
                        </div>
                    </div>

                </form>

            </div>
        </div>
   </div>

</body>
</html>
